<?php
namespace app\wechat\controller;

use app\BaseController;
use think\facade\Db;
use think\facade\View;
use think\facade\Config;
use think\facade\Request;
use think\facade\Session;


class Base extends BaseController
{
    public function initialize()
    {
    	$controller = \think\facade\Request::controller();
		$action = \think\facade\Request::action();
		define('ACTION_NAME', $action);
		if (!isWeixin()) {
			return redirect(url('mobile/index/index'))->send();die;
		}
		
        $keyArr = getCustomSys();
		View::assign('sys',$keyArr);
    }
}
